<template>
  <el-dialog title="批量添加钱包地址(ETH钱包地址)" :visible.sync="visible" width="66%" @open="onOpen" :before-close="onCancel">
    <el-input type="textarea" :rows="12" placeholder="每三行为一个钱包地址，其中第一行是私钥，第二行是地址，第三行是签名，相关数据生成请咨询技术人员：
            0x4694a0472d53cfe50119d794bb1dac320d0AA1216923ba9d3d2b81a4baed5dd5
            0xe1F76723ab2Da221001BB78c5b8d1F569e4B8EbD
            0x07a041c8046af0d5de7833a32CC2bff7674c2f26a9bf0cc1694f348S29affa755490ac19a36ff55534f97f55157dda93dacbff7e317f3ee259e56c71e02baabeedf1b
            0x5f257f4c4a762a31f9ca1abcbb68118d44f0b22DDF62b03ce3a1ae50130a6b2a
            0x9A4e0192479aE7B28de81973621SDF3cdeCbDd
            0x27049227eab60babc6f3d9eefc92328e9eb53c8bf3494620f23d70023678e6810da7b53936e7e6d653eb28c360915431508816cea52bb3d5cf36c6d74f1c

    " v-model="walletText">
    </el-input>
    <span slot="footer" class="dialog-footer">
      <el-button @click="onCancel">取 消</el-button>
      <el-button type="primary" @click="onConfirm">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>

export default {
  props: {
    visible: { type: Boolean, default: false },
  },
  data() {
    return {
      formLabelWidth: '120px',
      walletText: "",
    }
  },
  methods: {
    onCancel() {
      this.$emit("on-dismiss")
    },
    async onConfirm() {
      
      this.$emit("on-dismiss", this.walletText)
    },
    onOpen() {
      this.walletText = ""
    },
  }
}
</script>



<style lang="scss" scoped>
.version-update {
  &-info {
    margin-left: 10px;
    margin-top: 10px;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }

  &-footer {
    margin-right: 60px;
  }
}
</style>